<%-- 
    Document   : add_services
    Created on : Aug 30, 2013, 4:03:21 PM
    Author     : hb
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <style type="text/css">
            table.styletable{
                font-family: verdana,Times New Roman,sans-serif;
                font-size:11px;
                width: 100%;
                color:black;

            }
            table.styletable td {
                background:#ff99ff;

                padding: 8px;

            }
            h1{
                color: white;
            }
        </style>
        <script>
            function CheckValid()
            {
                var price = addService.txtpayment.value;
                var reg = "\\d+";
                var n = price.match(reg);
                if (addService.txtselect.value === "") {
                    alert(' Select Edition cannot be empty ');
                    addService.txtselect.focus();
                    return false;
                }
                else if (addService.txtpost.value === "") {
                    alert(' Post cannot be empty ');
                    addService.txtpost.focus();
                    return false;
                }
                else if (!n) {
                    alert(' Payment cannot be empty and must be a number  ');
                    addService.txtpayment.focus();
                    return false;
                }
                return true;
            }
        </script>
    </head>
    <body>
<p><h1  align="center" class="h1">Add Services </h1></p
        <form action="Add_Service" method="POST" name="addService">
            <table class="styletable">
                <tr>
                    <td align="right">Select_Edition</td>
                    <td><input type="text" name="txtselect" class="gwt-TextBox" value="" /></td>
                </tr>
                <tr>
                    <td align="right">Post_your</td>
                    <td><input type="text" name="txtpost" class="gwt-TextBox" value="" /></td>
                </tr>
                <tr>
                    <td align="right">Payment</td>
                    <td><input type="text" name="txtpayment" class="gwt-TextBox" value="" /></td>
                </tr>
                <tr>
                    <td align="right"><input type="submit" value="Submit" class="gwt-Button" name="btnSub" onclick="return CheckValid();"/></td>
                    <td align="left"><input type="reset" value="Reset" class="gwt-Button" name="btnReset" /></td>
                </tr>
            </table>
        </form>
    </body>
</html>
